import Vue from 'vue'

import Topbar from './topbar/topBar'
import alertDialog from './dialog/alerts'
import examineDialog from './dialog/examine'

import publicFunc from './publicFunc.js'
// import Mask from './mask'
// import Spinner from './spinner'
// import Loading from './loading'
// import MessageBox from './message-box'
// import Toast from './toast'
// import Printer from './printer'



const install = (Vue, options) => {
    // if (install.installed) {
    //     return;
    // }
    // Vue.component(Mask.name, Mask);
    // 公共组件
    Vue.component('le-topbar', Topbar);
    Vue.component('alerts-dialog', alertDialog);
    Vue.component('examine-dialog', examineDialog);

    // 公共方法
    Vue.prototype.globals = publicFunc;


    // Vue.component(Spinner.name, Spinner);
    
    // Vue.$loading = Vue.prototype.$loading = Loading;
    // Vue.$messagebox = Vue.prototype.$messagebox = MessageBox;
    // Vue.$toast = Vue.prototype.$toast = Toast;
    // Vue.$printer = Vue.prototype.$printer = Printer;
};
export default {
    install
}